package com.fileDemo;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: FENGYiMing
 * @Date: 2024/04/08/14:05
 * @Description:
 */
public class FileOutputStream01 {
    public static void main(String[] args) {
        try {
            //append:true 在文件内容中追加
            FileOutputStream fileOutputStream = new FileOutputStream("e:/a.txt", true);
            //fileOutputStream.write('H');
            fileOutputStream.write("shanhe".getBytes());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
